﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="survey-export.aspx.cs" Inherits="EnmineKaitlin.admin.survey_export" MasterPageFile="~/MasterPage/AdminDefault.Master" %>
<%@ Register Assembly="EnmineKaitlin" Namespace="EnmineKaitlin.Common" TagPrefix="Pagging" %>
<asp:Content ID="ctnsurvey" runat="server" ContentPlaceHolderID="cphContent">
<div class="form list">
        <h2><span class="icon"><img src="../images/admin/Play.png"></span><asp:Label ID="lblFunction" runat="server"></asp:Label></h2>
        <div class="content">
            <asp:Label ID="lblNotice" CssClass="error" runat="server"></asp:Label>
            <div class="filter">                
                <div class="function left">
                        Từ ngày:&nbsp;<asp:TextBox ID="txtFromDate" runat="server" CssClass="txt datepicker"></asp:TextBox>                    
                </div>                
                <div class="function left">
                    &nbsp;&nbsp;&nbsp;&nbsp;Đến ngày:&nbsp;<asp:TextBox ID="txtToDate" runat="server" CssClass="txt datepicker"></asp:TextBox>                    
                    <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtFromDate" ControlToValidate="txtToDate" Operator="GreaterThanEqual" ErrorMessage="Chọn thời gian đến chưa hợp lý !"></asp:CompareValidator>
                </div>                                                
                <div class="function left">
                    &nbsp;&nbsp;&nbsp;&nbsp;<asp:Button ID="btnFilter" runat="server" Text="Lọc" CssClass="link-btn" OnClick="btnFilter_Click" />
                    &nbsp;&nbsp;&nbsp;&nbsp;<asp:Button ID="btnExport" runat="server" Text="Xuất báo cáo" CssClass="link-btn" OnClick="btnExport_Click" />
                </div>
            </div>    
            <asp:GridView ID="grvSurvey" runat="server" Width="100%"
             AutoGenerateColumns="false" DataKeyNames="SurveyID" CssClass="tbl-list" AlternatingRowStyle-BackColor="AntiqueWhite" >
                <Columns>                    
                    <asp:TemplateField HeaderText="STT" ItemStyle-Width="20">
                        <ItemTemplate><%#Container.DataItemIndex+1 %></ItemTemplate>
                    </asp:TemplateField>    
                    <asp:BoundField HeaderText="Tên KH" DataField="GuestName" />                                                        
                    <asp:BoundField HeaderText="Độ tuổi" DataField="Age" />
                    <asp:BoundField HeaderText="Nghề nghiệp" DataField="Job" />
                    <asp:BoundField HeaderText="Địa chỉ" DataField="Address" />
                    <asp:BoundField HeaderText="Loại BĐS quan tâm" DataField="EstateType" />
                    <asp:BoundField HeaderText="Diện tích(m&sup2;)" DataField="Area" />
                    <asp:BoundField HeaderText="Khoảng giá (VNĐ)" DataField="Price" />
                    <asp:BoundField HeaderText="Hướng" DataField="Direction" />
                    <asp:BoundField HeaderText="Khu vực quan tâm" DataField="Region" />                                                           
                </Columns>
            </asp:GridView>                                                        
            <div class="pagenav">
                <Pagging:PaggingControl runat="server" ID="ctlPagging" Mode="Url" PageSize="20"
                PreviousClause="<img src='/images/Back.png'/>" NextClause="<img src='/images/Forward.png'/>" />
            </div>
        </div>
    </div>
</asp:Content>